Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate wildcards when parsing components #455

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

pvandyken
Copy link
Contributor

Specifying a wildcard multiple times leads to an unintuitive KeyError. This includes re-specifying a wildcard defined in the config by the developer.

Fix by using a set to deduplicate wildcards before parsing.

Specifying a wildcard multiple times leads to an unintuitive KeyError.
This includes re-specifying a wildcard defined in the config by the
developer.

Fix by using a set to deduplicate wildcards before parsing.

Resolves khanlab#422
@github-actions github-actions bot requested a review from akhanf July 26, 2024 15:04
@github-actions github-actions bot added the bug Something isn't working label Jul 26, 2024
@pvandyken pvandyken linked an issue Jul 26, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.36%. Comparing base (96fb5e1) to head (00e5629).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #455   +/-   ##
=======================================
  Coverage   94.36%   94.36%           
=======================================
  Files          55       55           
  Lines        2218     2218           
=======================================
  Hits         2093     2093           
  Misses        125      125           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pvandyken pvandyken merged commit 0f3491b into khanlab:main Jul 29, 2024
39 checks passed
@pvandyken pvandyken deleted the fix/wildcard-deduplicate branch July 29, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wildcards added via cli are not deduplicated
1 participant